# 连接数据库
from pymysql import connect
con = connect(host="127.0.0.1",port=3306,user="root",password="123456",db="travel")
cursor1 = con.cursor()
sql = "select * from useradmin"
cursor1.execute(sql)
res = cursor1.fetchall()


def panduan_login(username, password):
	for item in res:
		if item[1] == username and item[2] == password:
			return "true"
